package com.kitking.surfacevie;

import java.util.ArrayList;

public class CoordinateStorage {
    private ArrayList<CustomPoint> coordinates;

    public CoordinateStorage() {
        coordinates = new ArrayList<>();
    }

    // 添加坐标点
    public void addPoint(float x, float y, long timestamp) {
        coordinates.add(new CustomPoint(x, y, timestamp));
    }
    // 获取坐标点个数
    public int getSize() {
        return coordinates.size();
    }
    // 获取所有坐标点
    public ArrayList<CustomPoint> getCoordinates() {
        return coordinates;
    }

    // 清空坐标点
    public void clear() {
        coordinates.clear();
    }
}
